import 'package:json_annotation/json_annotation.dart';
import 'user_task_publish_order_list.dart';

part 'user_task_publish_order_response.g.dart';

@JsonSerializable()
class UserPublishTaskOrderResponse {
  final int count;
  @JsonKey(name: 'taskPublishListDetails', defaultValue: [])
  final List<UserPublishTaskOrderList> taskPublishListDetails;

  UserPublishTaskOrderResponse({
    required this.count,
    required this.taskPublishListDetails,
  });

  factory UserPublishTaskOrderResponse.fromJson(Map<String, dynamic> json) =>
      _$UserPublishTaskOrderResponseFromJson(json);

  Map<String, dynamic> toJson() => _$UserPublishTaskOrderResponseToJson(this);
}